package one_class_design.four_work;

/**
 * @author 北巷_东坡
 * @date 2022/9/18 16:42
 * @computer 10741
 */
public class Rect extends geometry{
    private double a;
    private double b;

    public Rect(double a, double b) {
        this.a = a;
        this.b = b;
    }

    @Override
    public double getArea() {
        return a*b;
    }
}
